<!DOCTYPE html>
<html lang="en" xmlns:th="https://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>化工职业技术学院图书管理</title>
    <link rel="stylesheet" href="/css/bootstrap.min.css"/>
    <script src="/js/jquery-3.5.1.min.js"></script>
    <script src="/js/bootstrap.min.js"></script>
    <style>
        .div1{
            width: 50%;
            height: 500px;
            margin: 0 auto;
        }
    </style>
</head>
<body>
    <div class="div1">
        <h1>诚信是进步的基石</h1>
        <hr>
        <form class="form-inline" action="/homepage/returnoperationa">
            <div class="form-group">
                <label class="sr-only" for="exampleInputEmail3">借出书籍流水</label>
                <input type="text" class="form-control" id="exampleInputEmail3" name="id" placeholder="借出书籍流水...">
            </div>
            <button type="submit" class="btn btn-default">搜索</button>
            <h3 th:text="${msg}"></h3>
        </form>
        <hr>
    <form action="/homepage/returnoperationb" method="post" th:if="${record!=null}" th:object="${record}">
        <div class="form-group">
          <label for="exampleInputEmail1">书籍编号</label>
          <input type="text" class="form-control" id="exampleInputEmail1" name="id" placeholder="bookid" th:value="*{id}">
        </div>
        <br>
        <div class="form-group">
          <label for="exampleInputPassword1">书籍名字</label>
          <input type="text" class="form-control" id="exampleInputPassword1" name="bookname" placeholder="bookname" th:value="*{bookname}">
        </div>
        <br>
        <div class="form-group">
            <label for="date">出借日期</label>
            <input type="date" class="form-control" id="date" name="lendtime" th:value="*{lendtime}">
        </div>
        <br>
        <div class="form-group">
            <label for="datehidden">归还日期</label>
            <input type="date" class="form-control" id="datehidden" name="returntime" th:value="*{returntime}">
        </div>
        <br>
        <h2 th:text="${msg}"></h2>
        <button type="submit" class="btn btn-default">确认修改</button>
      </form>
    </div>
</body>
</html>